﻿using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
using UnityEngine.UI;

public class NewBehaviourScript 
{
    [MenuItem("Tools/UpdateAllFont")]
    public static void UpdateAllFont()
    {
        Font font= Resources.Load<Font>("simhei");
        Text[] texts= GameObject.FindObjectsOfType<Text>();
        for (int i = 0; i < texts.Length; i++)
        {
            texts[i].font = font;
        }
       
    }
}
